//
//  ViewController.swift
//  OMTUIKitSwift
//
//  Created by yizhaorong on 12/08/2018.
//  Copyright (c) 2018 yizhaorong. All rights reserved.
//

import UIKit
import OMTUIKitSwift

class ViewController: BaseViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.navigationBar.setRightButton(title: "右边标题")
        self.title = "我是标题我是标题我是标题我是标题我是标题我是标题我是标题"
        self.navigationBar.showShadow = true
        self.navigationBar.backgroundImage = UIImage.init(#colorLiteral(red: 0.2078431373, green: 0.5529411765, blue: 0.9568627451, alpha: 1))
        self.navigationBar.didClickLeftButtonBlock = { (sender) in
            print("点击了左侧按钮:\(sender)")
        }
        
        self.navigationBar.didClickRightButtonBlock = { (sender) in
            print("点击了右侧按钮:\(sender)")
        }
    }

}

